module.exports = ({ app, router }) => {
    router.post("/addUser", (req, res) => {
        const { username, password } = req.body
        const User = require("../../models/User")
        const user = new User({ username, password })
        user.save()
        res.send(user)
    })
}
